import "./assets/main.css";

import { createApp } from "vue";
import { createPinia } from "pinia";
import { VueQueryPlugin } from "vue-query";
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";

import App from "./App.vue";
import router from "./router";

const app = createApp(App);
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);
app.config.errorHandler = (err) => {
  /* 处理错误 */
  console.log(err,'ds');
}
app.use(pinia);
app.use(router);
app.use(VueQueryPlugin);
app.mount("#app");
